package com.guoliang.eduService.mapper;

import com.guoliang.eduService.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guoliang.eduService.entity.vo.CourseFrontVo;
import com.guoliang.eduService.entity.vo.CoursePublishVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author leo
 * @since 2023-01-18
 */
@Mapper
public interface EduCourseMapper extends BaseMapper<EduCourse> {
   public CoursePublishVo getPublishCourseInfo(String courseId);

    CourseFrontVo getFrontCourseInfo(String id);

    void updateBuyCount(String id);

    void updateViewCount(@Param("id") String id,@Param("viewCount") Long viewCount);

}
